﻿<%@ page language="java" pageEncoding="GBK" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/jb-common.tld" prefix="jb"  %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>
<html:errors/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <title>新建用户表</title>
	<link rel="stylesheet" type="text/css" href="styles.css" >
	<script>
		function doDel(id){
			if ( window.confirm("确定删除？") ){
				window.location.href = "?o=doDel&id=" + id;
			}
		}
	</script>
  </head>

  <body class="main">
  <html:form action="customer" method="post">
  	<html:hidden property="o" value="doAdd" />
  		<span class="page_title">新建用户表</span>
		<div class="button_bar">
			<button class="common_button" onclick="javascript:history.go(-1);">返回</button>
			<button class="common_button" onclick="javascript:doSubmit('doAdd');">保存</button>
		</div>
		<table class="query_form_table" border="0" cellPadding="3" cellSpacing="0">
			<tr>
								<th>客户编号，KHYYMMDDNNN</th>
				<td><html:text property="item.custNo" /></td>
								<th>客户名称</th>
				<td><html:text property="item.custName" /></td>
			</tr>
			<tr>
								<th>地区</th>
				<td><html:text property="item.custRegion" /></td>
								<th>客户经理编号</th>
				<td><html:text property="item.custManagerId" /></td>
			</tr>
			<tr>
								<th>客户经理姓名</th>
				<td><html:text property="item.custManagerName" /></td>
								<th>客户等级</th>
				<td><html:text property="item.custLevel" /></td>
			</tr>
			<tr>
								<th>等级名称</th>
				<td><html:text property="item.custLevelLabel" /></td>
								<th>满意度</th>
				<td><html:text property="item.custSatisfy" /></td>
			</tr>
			<tr>
								<th>信用度</th>
				<td><html:text property="item.custCredit" /></td>
								<th>地址</th>
				<td><html:text property="item.custAddr" /></td>
			</tr>
			<tr>
								<th>邮政编码</th>
				<td><html:text property="item.custZip" /></td>
								<th>电话</th>
				<td><html:text property="item.custTel" /></td>
			</tr>
			<tr>
								<th>传真</th>
				<td><html:text property="item.custFax" /></td>
								<th>网址</th>
				<td><html:text property="item.custWebsite" /></td>
			</tr>
			<tr>
								<th>营业执照注册号</th>
				<td><html:text property="item.custLicenceNo" /></td>
								<th>法人</th>
				<td><html:text property="item.custChieftain" /></td>
			</tr>
			<tr>
								<th>注册资金</th>
				<td><html:text property="item.custBankroll" /></td>
								<th>营业额</th>
				<td><html:text property="item.custTurnover" /></td>
			</tr>
			<tr>
								<th>开户银行</th>
				<td><html:text property="item.custBank" /></td>
								<th>银行账号</th>
				<td><html:text property="item.custBankAccount" /></td>
			</tr>
			<tr>
								<th>地税登记号</th>
				<td><html:text property="item.custLocalTaxNo" /></td>
								<th>国税登记号</th>
				<td><html:text property="item.custNationalTaxNo" /></td>
			</tr>
			<tr>
								<th>客户状态：1--正常；2--流失；3--删除。
</th>
				<td><html:text property="item.custStatus" /></td>
			</tr>
		</table>
		
		<script>
		build_validate("item.custNo","客户编号，KHYYMMDDNNN不能为空","Limit","1","11");

		build_validate("item.custName","客户名称不能为空","Limit","1","100");

		build_validate("item.custRegion","地区不能为空","Limit","1","50");

		build_validate("item.custManagerId","客户经理编号不能为空","Limit","1","8");

		build_validate("item.custManagerName","客户经理姓名不能为空","Limit","1","50");

		build_validate("item.custLevel","客户等级不能为空","Limit","1","4");

		build_validate("item.custLevelLabel","等级名称不能为空","Limit","1","50");

		build_validate("item.custSatisfy","满意度不能为空","Limit","1","4");

		build_validate("item.custCredit","信用度不能为空","Limit","1","4");

		build_validate("item.custAddr","地址不能为空","Limit","1","300");

		build_validate("item.custZip","邮政编码不能为空","Limit","1","10");

		build_validate("item.custTel","电话不能为空","Limit","1","50");

		build_validate("item.custFax","传真不能为空","Limit","1","50");

		build_validate("item.custWebsite","网址不能为空","Limit","1","50");

		build_validate("item.custLicenceNo","营业执照注册号不能为空","Limit","1","50");

		build_validate("item.custChieftain","法人不能为空","Limit","1","50");

		build_validate("item.custBankroll","注册资金不能为空","Limit","1","8");

		build_validate("item.custTurnover","营业额不能为空","Limit","1","8");

		build_validate("item.custBank","开户银行不能为空","Limit","1","200");

		build_validate("item.custBankAccount","银行账号不能为空","Limit","1","50");

		build_validate("item.custLocalTaxNo","地税登记号不能为空","Limit","1","50");

		build_validate("item.custNationalTaxNo","国税登记号不能为空","Limit","1","50");

		build_validate("item.custStatus","客户状态：1--正常；2--流失；3--删除。
不能为空","Limit","1","1");

		</script>
	</html:form>	
  </body>
</html:html>
